<div class="banner-wrap">
<div class="banner">
	<div class="banner-holder">
		{if $node.data_map.img_banner.has_content}
			{def $banner = array()}
			{foreach $node.data_map.img_banner.content.relation_list as $Relations}
			{set $banner = fetch( content, node, hash( node_id, $Relations.node_id ) )}
			<div class="img-banner">
				{attribute_view_gui attribute=$banner.data_map.image image_class=fp_banner}
			</div>
			{/foreach}
		
		{/if}
		<div class="info">
			<strong>{attribute_view_gui attribute=$node.data_map.title_banner}</strong>
			<strong class="head">{attribute_view_gui attribute=$node.data_map.title2_banner}</strong>
		</div>
	</div>
	<div class="art">
		{if $node.data_map.live_page.has_content}
		{def $live_node = $node.data_map.live_page.content.main_node}
		{node_view_gui content_node=$live_node view=clock}
		{/if}
		<h2>{attribute_view_gui attribute=$node.data_map.title_banner_left}</h2>
		<p>{attribute_view_gui attribute=$node.data_map.text_banner}</p>
		{if $node.data_map.links_banner.has_content}
		<ul>
		{def $link = array()}
		{foreach $node.data_map.links_banner.content.relation_list as $Relations}
		{set $link = fetch( content, node, hash( node_id, $Relations.node_id ) )}
			<li><a href={$link.url_alias|ezurl}>{$link.name|wash}</a></li>
			{/foreach}
		</ul>
		{/if}
	</div>
</div>
</div>
<div class="info-holder">
	<div class="news">
		<p><strong class="emf">Recent news</strong></p>
		{if $node.data_map.news_folder.has_content}
		{def $news=fetch_alias( 'children', hash( 'parent_node_id', $node.data_map.news_folder.content.main_node.node_id,
			'sort_by', $node.data_map.news_folder.content.main_node.sort_array,
			'class_filter_type', 'include',
			'class_filter_array', array('article'),
			'limit', 6 ) )}
		{if $news|count|gt(0)}
		<ul class="list">
			{foreach $news as $new}
			<li><a href={$new.url_alias|ezurl}>{$new.name|wash|shorten(28)} <span>({$new.data_map.date.content.timestamp|l10n(shortdate)})</span></a></li>
			{/foreach}
		</ul>
		{/if}
		<p><a href={$node.data_map.news_folder.content.main_node.url_alias|ezurl} class="more">More news in the archive</a></p>
		{/if}
		{attribute_view_gui attribute=$node.data_map.some_text}
		{$node.data_map.fb_embed.content}
	</div>
	{if $node.data_map.video_node.has_content}
	<div class="vidoes">
		<p><strong class="emf">Videos</strong></p>
		
			{def $video_node = $node.data_map.video_node.content.main_node
				$vidoes=fetch_alias( 'children', hash( 'parent_node_id', $video_node.node_id,
			                                              'sort_by', $video_node.sort_array,
			                                              'class_filter_type', 'include',
			                                              'class_filter_array', array('embed_video'),
			limit, 3 ) )}
			{if $vidoes|count|gt(0)}
				{foreach $vidoes as $key => $val max 3}
					<div class="video" id="video{$key}">
						{$val.data_map.embed.content}
					</div>
				{/foreach}
				<ul>
					{foreach $vidoes as $key => $val}
						<li><a href="#video{$key}">{attribute_view_gui attribute=$val.data_map.image image_class=fp_video}<span>{$val.name|wash|shorten(16)}</span></a></li>
					{/foreach}
				</ul>
			{/if}
			<a href={$video_node.url_alias|ezurl} class="archive">See more NXTRI videos</a>
		
		
	</div>
	{/if}
</div>